package com.kongjian.manage.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;
import java.math.BigDecimal;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class StorageCapacityVO implements Serializable, IExcelDataModel, IExcelModel {

    @ApiModelProperty(value = "rowNum", hidden = true)
    @JsonIgnore
    private Integer rowNum;

    @ApiModelProperty(value = "errorMsg", hidden = true)
    @JsonIgnore
    private String errorMsg;


    @ApiModelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间", format = "yyyy-MM-dd HH:mm:ss", width = 20, orderNum = "1")
    private java.util.Date tm;

    /**
     * 水位(m)
     */
    @ApiModelProperty(value = "水位(m)")
    @Excel(name = "水位", orderNum = "2")
    private BigDecimal z;

    /**
     * 库容(m³/s)
     */
    @ApiModelProperty(value = "库容")
    @Excel(name = "库容", orderNum = "3")
    private BigDecimal q;


    @ApiModelProperty(value = "入库")
    @Excel(name = "入库", orderNum = "4")
    private BigDecimal warehousing;

    @ApiModelProperty(value = "发电")
    @Excel(name = "发电", orderNum = "5")
    private BigDecimal power;

    @ApiModelProperty(value = "供水")
    @Excel(name = "供水", orderNum = "6")
    private BigDecimal water;

    @ApiModelProperty(value = "生态流量")
    @Excel(name = "生态流量", orderNum = "7")
    private BigDecimal ecologyFlow;

    @ApiModelProperty(value = "下泄流量")
    @Excel(name = "下泄流量", orderNum = "8")
    private BigDecimal downFlow;

    @Override
    public void setRowNum(Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }


}